package com.hand.wfive.ad;

import com.hand.wfive.App;
import com.hand.wfive.R;

public class AdConfig {

    public static final int VACATION_WORKING = 0;
    public static final int VACATION_OFF_WORK = 1;
    public static final int VACATION_HOLIDAY = 2;
    public static final int VACATION_NO_AD = 3;
    public static final int VACATION_OFF_WORK_NOSPLASHAD = 4;
    public static final int VACATION_OFF_WORK_NOBANNERAD = 5;
    public static int vacation = VACATION_OFF_WORK;

    public static final String AD_LOG_TAG = "广告TAG";

    private static String AD_APP_ID = "5351243";
    // 开屏代码位
    private static String SplashCodeId = "888013489";
    // 视频代码位
    private static String VideoCodeId = "950444157";
    // 插屏代码位
    private static String DialogCodeId = "950444168";
    // Banner代码位
    private static String BannerCodeId = "950444156";

    public static boolean isShowAd = true;
    public static boolean adDisable = false;
    public static boolean isShowSplashAd = true;

    public static String getAdAppId() {
        return AD_APP_ID;
    }

    public static String getSplashCodeId() {
        return SplashCodeId;
    }

    public static String getVideoCodeId() {
        return VideoCodeId;
    }

    public static String getDialogCodeId() {
        return DialogCodeId;
    }

    public static String getBannerCodeId() {
        return BannerCodeId;
    }

    public static void setAdAppId(String adAppId) {
        AD_APP_ID = adAppId;
    }

    public static void setSplashCodeId(String splashCodeId) {
        SplashCodeId = splashCodeId;
    }

    public static void setVideoCodeId(String videoCodeId) {
        VideoCodeId = videoCodeId;
    }

    public static void setDialogCodeId(String dialogCodeId) {
        DialogCodeId = dialogCodeId;
    }

    public static void setBannerCodeId(String bannerCodeId) {
        BannerCodeId = bannerCodeId;
    }

    public static boolean isHuawei() {
        return "huawei".equals(App.getContext().getString(R.string.channel));
    }
}
